Skip to content

Conversation

owenv
Copy link
Contributor

@owenv owenv commented Sep 15, 2025

Default to an unversioned triple if the user hasn't provided one so we don't raise the deployment target to a version the package may not support

closes #9095

@owenv
Copy link
Contributor Author

owenv commented Sep 15, 2025

@swift-ci test

let hostArch: String
#if arch(arm64)
hostArch = "arm64"
#else
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: else-if-x86_64 would be better

@owenv
Copy link
Contributor Author

owenv commented Sep 17, 2025

@swift-ci test

1 similar comment
@owenv
Copy link
Contributor Author

owenv commented Sep 18, 2025

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Sep 18, 2025

Not sure how I broke the self-hosted plugin tests but those are reliably failing with this patch...

@owenv owenv requested a review from rconnell9 as a code owner September 20, 2025 00:24
@owenv
Copy link
Contributor Author

owenv commented Sep 20, 2025

@swift-ci test self-hosted

@owenv
Copy link
Contributor Author

owenv commented Sep 20, 2025

@swift-ci test self hosted

@owenv owenv force-pushed the owenv/deployment-targets branch from 4c8704d to ab11e91 Compare September 20, 2025 02:40
@owenv
Copy link
Contributor Author

owenv commented Sep 20, 2025

@swift-ci test self hosted

@owenv owenv force-pushed the owenv/deployment-targets branch from ab11e91 to 570bbea Compare September 20, 2025 23:47
@owenv
Copy link
Contributor Author

owenv commented Sep 20, 2025

@swift-ci test self hosted

@owenv owenv force-pushed the owenv/deployment-targets branch from 570bbea to 749c8cb Compare September 21, 2025 04:35
@owenv
Copy link
Contributor Author

owenv commented Sep 21, 2025

@swift-ci test self hosted

@owenv
Copy link
Contributor Author

owenv commented Sep 21, 2025

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Sep 29, 2025

@swift-ci test macOS

@owenv
Copy link
Contributor Author

owenv commented Oct 2, 2025

@swift-ci test

1 similar comment
@owenv
Copy link
Contributor Author

owenv commented Oct 3, 2025

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Oct 3, 2025

@swift-ci test self hosted

@owenv owenv force-pushed the owenv/deployment-targets branch from 61614ac to f46e7bf Compare October 3, 2025 22:17
@owenv
Copy link
Contributor Author

owenv commented Oct 3, 2025

@swift-ci test

1 similar comment
@owenv
Copy link
Contributor Author

owenv commented Oct 4, 2025

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Oct 4, 2025

Only remaining failure is a warning due to duplicate /usr/lib/swift rpaths, because both the driver and build system are adding one for the back deploy libs

@owenv
Copy link
Contributor Author

owenv commented Oct 5, 2025

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Oct 5, 2025

@swift-ci test self hosted

1 similar comment
@owenv
Copy link
Contributor Author

owenv commented Oct 5, 2025

@swift-ci test self hosted

@owenv
Copy link
Contributor Author

owenv commented Oct 5, 2025

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Oct 6, 2025

@swift-ci test self hosted

1 similar comment
@owenv
Copy link
Contributor Author

owenv commented Oct 6, 2025

@swift-ci test self hosted

#endif

// Unversioned triple - build should pass
try await fixture(name: "Miscellaneous/RequiresOlderDeploymentTarget") { path in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: can we make these as parameterized tests? the test arguments can be the the extraArgs. We can also add an ID to each argument to describe the test intent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it's a bit easier to read written out like this since we're already parameterizing based on build system

)
}

if buildSystem == .swiftbuild {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: why is this only applicable to SwiftBuild? Should we verify and ensure the native build system also fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old build system has incorrect behavior here, I replaced the check with a known issue


var env = Environment.current

// FIXME: This is largely a workaround for improper rpath setup on Linux. It should be
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (possibly-blocking) the path setup on linux is fixed in #9218. This PR depend on it so it provides the proper fix/solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The stdlib rpaths are a different set from those added in #9218. We can likely drop these runtime paths entirely soon but I need to test that out in another patch first

@owenv owenv force-pushed the owenv/deployment-targets branch from f46e7bf to 3c5f731 Compare October 6, 2025 17:05
@owenv owenv force-pushed the owenv/deployment-targets branch from 3c5f731 to 0bf305f Compare October 6, 2025 17:13
@owenv
Copy link
Contributor Author

owenv commented Oct 6, 2025

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Oct 6, 2025

@swift-ci test Windows

@owenv
Copy link
Contributor Author

owenv commented Oct 6, 2025

@swift-ci test self hosted

1 similar comment
@owenv
Copy link
Contributor Author

owenv commented Oct 7, 2025

@swift-ci test self hosted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'Bindable' is unavailable in macOS
5 participants